<template>
  <div id="app">
    <common-header></common-header>
    <transition name="router-fade" mode="out-in">
      <keep-alive>
          <router-view v-if="$route.meta.keepAlive"></router-view>
      </keep-alive>
    </transition>
    <transition name="router-fade" mode="out-in">
      <router-view  v-if="!$route.meta.keepAlive"></router-view>
    </transition>
    <common-footer></common-footer>
  </div>
</template>

<script>
import commonHeader from 'components/common-header'
import commonFooter from 'components/common-footer'
export default {
  name: 'App',
  data() {
    return {
      transitionName: ''
    }
  },
  components: {
    commonHeader,
    commonFooter
  },
  mounted() {

  },
  computed: {
  },
  methods: {
  }
}
</script>

<style lang="less">
@import "~styles/common.less";
#app {
  max-width:1440px;
  margin:0 auto;
  background: #fff;
}
</style>
